#ifndef RANDOMGAME_H
#define RANDOMGAME_H

#include <QPushButton>
#include <QCheckBox>

#include "games/basegame.h"

// RandomGame: just click the buttons to turn on the lights (randomly)
class RandomGame : public BaseGame
{
    Q_OBJECT
    
public:
    // Constructors
    explicit RandomGame(QWidget *parent = 0, int difflvl = 1);

    // Members
    bool isSolved();
    QString hint() { return QString("Click on button %1.").arg(qrand() % no_btns + 1); }
    
public slots:
    // Slots to turn on the lights
    void onButtonClicked();

private:
    QPushButton ** button_map;
    QCheckBox ** check_map;
    bool * bool_map;

    int no_btns;
};

#endif // RandomGame_H
